import {
    Icon,
    Tabbar,
    TabbarItem,
    Swipe,
    SwipeItem,
    Lazyload,
    GoodsAction,
    GoodsActionIcon,
    GoodsActionButton,
    Tab,
    Tabs,
    Popup,
    NavBar,
    Empty,
    SwipeCell,
    Card,
    Button,
    SubmitBar,
    Checkbox,
    CheckboxGroup,
    PasswordInput,
    NumberKeyboard,
    NoticeBar,
    AddressEdit,
    ContactCard,
    Area,
    AddressList,
    RadioGroup,
    Radio,
    Dialog,
    Search,
    List,
    Rate,
    Uploader,
    Sidebar,
    SidebarItem,
    CouponCell,
    CouponList,
    ImagePreview,
} from 'vant'

const UIComponents = [
    Icon,
    Tabbar,
    TabbarItem,
    Swipe,
    SwipeItem,
    Lazyload,
    GoodsAction,
    GoodsActionIcon,
    GoodsActionButton,
    Tab,
    Tabs,
    Popup,
    NavBar,
    Empty,
    SwipeCell,
    Card,
    Button,
    SubmitBar,
    Checkbox,
    CheckboxGroup,
    PasswordInput,
    NumberKeyboard,
    NoticeBar,
    ContactCard,
    AddressEdit,
    Area,
    AddressList,
    RadioGroup,
    Radio,
    Dialog,
    Search,
    List,
    Rate,
    Uploader,
    Sidebar,
    SidebarItem,
    CouponCell,
    CouponList,
    ImagePreview,
]


const VantUI = {};

VantUI.install = function (Vue) {
    UIComponents.forEach(Component => {
        Vue.use(Component)
    })
}

export default VantUI